package br.com.foxinline.servico;

import br.com.foxinline.modelo.Tramite;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.Query;

/**
 *
 * @author cadomeireles
 */
@Stateless
public class TramiteServico extends ServicoGenerico<Tramite> {

    public TramiteServico() {
        super(Tramite.class);
    }
    
    public List<Tramite> pesquisar(Tramite tramite) {
        String sql = "select tramite from Tramite tramite where tramite.ativo = true";
               
        Query query = getEntityManager().createQuery(sql);

        return query.getResultList();
    }    
    
}
